<template>
  <div class="toolbar" style="display: flex;line-height: 60px">
    <div>
      <el-icon style="color: #ecf5ff; font-size: 20px;margin-top: 20px"><Fold /></el-icon>
    </div>
    <div style="flex: 1;text-align: center;font-size: 30px;color: #259cea">
      <span>欢迎来到用户管理界面</span>
    </div>
    <span style="font-size: medium;color: #ecf5ff">{{tname}}</span><i class="el-icon-setting" style="margin-left: 5px"></i>
    <el-dropdown>

      <el-icon style="margin-right: 8px; margin-top: 1px"
      ><ArrowDown
      /></el-icon>
      <template #dropdown>
        <el-dropdown-menu>
          <el-dropdown-item @click.native="logout">退出登录</el-dropdown-item>
        </el-dropdown-menu>
      </template>
    </el-dropdown>
  </div>
</template>

<script>
  import router from "@/router";
	export default{
		name:"TenantHeader",
    data(){
      return {
        tname:this.$cookies.get('value').tenantName
      }
    },
		methods:{
			collapse(){
				this.$emit('doCollapse')
			},
      logout(){
        console.log(this.$cookies.get('value'))
        router.push('/')
      }
		}
	}
</script>

<style>
</style>
